package com.emser.unc.client.event;

import com.emser.unc.client.service.SellerServiceAsync;
import com.emser.unc.serializable.SellerDTO;
import com.google.gwt.event.shared.GwtEvent;

public class EditSellerEvent extends GwtEvent<EditSellerEventHandler> {
	  public static Type<EditSellerEventHandler> TYPE = new Type<EditSellerEventHandler>();
	  private final SellerDTO seller;
	  private SellerServiceAsync rpcServiceSeller;

	  public EditSellerEvent(SellerDTO seller,SellerServiceAsync rpcServiceSeller) {
	    this.seller = seller;
	    this.rpcServiceSeller = rpcServiceSeller;
	  }

	  public SellerDTO getSeller() {
	    return seller;
	  }

	  @Override public Type<EditSellerEventHandler> getAssociatedType() {
	    return TYPE;
	  }

	  @Override protected void dispatch(EditSellerEventHandler handler) {
	    handler.onEdit(this);
	  }
	  public SellerServiceAsync getRPCserviceSeller(){
			return rpcServiceSeller;	
		}
}
